home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / pppoeconf.postinst < prev    next >
Text File  |  2008-08-26  |  589b  |  27 lines

  1. #!/bin/sh
  2.  
  3. f=/etc/ppp/ip-up.d/000usepeerdns
  4. # woody version
  5. w=dca85124803e711d13c5a49a1070d21e
  6. # one-liner version
  7. o=3e2b31c72181b87149ff995e7202c0e3
  8.  
  9. if [ "$1" = "configure" ] && [ "$2" ] && [ -r $f ] ; then
  10.    if [ -s $f ] ; then
  11.       sum=`md5sum $f | cut -f1 -d\  `
  12.       if [ "$sum" = $w ] || [ "$sum" = $o ] ; then
  13.          rm $f
  14.       fi
  15.    else
  16.       # a zero-sized file, was a bad idea...
  17.       rm $f
  18.    fi
  19. fi
  20.  
  21. # Automatically added by dh_installmenu
  22. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  23.     update-menus
  24. fi
  25. # End automatically added section
  26.  
  27.